﻿@model Pr0ject0.Models.JobApplicationModel

@{
    ViewBag.Title = "Details";
}
@Html.Partial("~\\Views\\Shared\\_PartialLogout.cshtml") 
<h2>Details</h2>

<p>
    @Html.ActionLink("Interviews", "Interviews")
</p>




<fieldset>
    <legend>Applicant Details</legend>

<!-- Partial Views for Page -->
    <table>

    <tr> 
        <th>
            @Html.DisplayNameFor(model => model.first)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.last)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.middle)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.address1)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.address2)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.city)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.state)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.zip)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.phone)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.jobID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.status)
        </th>
    </tr>

    <tr>
        <td>
            @Html.DisplayFor(model => model.first)
        </td>
        <td>
            @Html.DisplayFor(model => model.last)
        </td>
        <td>
            @Html.DisplayFor(model => model.middle)
        </td>
        <td>
            @Html.DisplayFor(model => model.address1)
        </td>
        <td>
            @Html.DisplayFor(model => model.address2)
        </td>
        <td>
            @Html.DisplayFor(model => model.city)
        </td>
        <td>
            @Html.DisplayFor(model => model.state)
        </td>
        <td>
            @Html.DisplayFor(model => model.zip)
        </td>
        <td>
            @Html.DisplayFor(model => model.phone)
        </td>
        <td>
            @Html.DisplayFor(model => model.jobID)
        </td>
        <td>
            @Html.DisplayFor(model => model.status)
        </td>
    </tr>
    </table>
    @Html.Partial("~\\Views\\Shared\\_AvailableHoursPartial.cshtml", Model.hours)
    @Html.Partial("~\\Views\\Shared\\_PartialEducationModel.cshtml", Model.education)
    @Html.Partial("~\\Views\\Shared\\_PartialReferenceModel.cshtml", Model.references)
    @Html.Partial("~\\Views\\Shared\\_PartialPreviousJobModel.cshtml", Model.previousJobs)

    </fieldset>

    <form method="post" @Url.Action("Details")>
    @Html.Hidden("str", "accept");
    <input type="submit" value="Accept" />
</form>

    <form method="post" @Url.Action("Details")>
    @Html.Hidden("str", "reject");
    <input type="submit" value="Reject" />
</form>

@{
    if(Model.status == 6)
    {
        <form method="post" @Url.Action("Details")>
        @Html.Hidden("str", "postpone");
        <input type="submit" value="Postpone" />
        </form>
    }
}


